4ea9486f91c1cf445e8b1404c4455efbbd41a171,src/java/org/orbeon/oxf/processor/ProcessorUtils.java,ProcessorUtils,addNeededNamespaceDeclarations,#Element#Element#Set#,160
Before Change
}
// Add attribute prefixes if needed
for (Iterator i = copyElement.attributes().iterator(); i.hasNext();) {
Attribute attribute = (Attribute) i.next();
String attributePrefix = attribute.getNamespace().getPrefix();
if (attributePrefix != null && !newAlreadyDeclaredPrefixes.contains(attribute.getNamespace().getPrefix())) {
copyElement.addNamespace(attributePrefix, originalElement.getNamespaceForPrefix(attributePrefix).getURI());
After Change
}
// Add attribute prefixes if needed
for (Object o: copyElement.attributes()) {
Attribute attribute = (Attribute) o;
String attributePrefix = attribute.getNamespace().getPrefix();
if (attributePrefix != null && !newAlreadyDeclaredPrefixes.contains(attribute.getNamespace().getPrefix())) {